package day04;

public class ForDemo {
    public static void main(String[] args) {
//        for (int times = 0;times<5;times++){
//            System.out.println("行动是成功的关键因素!");
//            System.out.println("扛得住涅槃之痛，才配得上成功之美!");
//        }
//        for (int times =0;times<6;times++){
//            System.out.println("失败是成功之母!");
//        }
//        for (int times = 1;times<=9;times++){
//            System.out.println(times+"*9="+times*9);
//        }
//        for (int times = 9;times>=1;times--){
//            System.out.println(times+"*9="+times*9);
//        }
//        for (int times = 1;times<=9;times +=2){
//            System.out.println(times+"*9="+times*9);
//        }
        for (int num =1;num<=9;num++){
            for (int i=1;i<=num;i++){
                System.out.print(num+"*"+i+"="+num*i+"\t");
            }
                System.out.println();
        }
        for (int num=9;num>=1;num--){
            for (int i=num;i>=1;i--){
                System.out.print(num+"*"+i+"="+num*i+"\t");
            }
            System.out.println();
        }
    }
}
